package com.li.controller;

import com.li.domain.ElIcon;
import com.li.service.ElIconService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/elicon")
public class ElIconController {

    @Autowired
    ElIconService elIconService;

    @RequestMapping("/listElicon")
    public List<ElIcon> listElicon(){
        return elIconService.list();
    }
}
